<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
<?php
# $Id:
  global $config;
  echo $config['title'];
  ?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript" src="<?=WEB_MODULE_DIR?>js/setpointer.js" type="text/javascript"></script>
<script language="javascript" src="<?=WEB_MODULE_DIR?>js/JSCookMenu.js" type="text/javascript"></script>
<script language="javascript" src="<?=WEB_MODULE_DIR?>ThemeOffice/theme.js" type="text/javascript"></script>
<script language="javascript" src="<?=WEB_MODULE_DIR?>js/menu.js" type="text/javascript"></script>
<script language="javascript" src="<?=WEB_MODULE_DIR?>js/dateformat.js" type="text/javascript"></script>
<script language="javascript" src="<?=WEB_MODULE_DIR?>js/calendar.js" type="text/javascript"></script>
<script language="javascript" src="<?=WEB_MODULE_DIR?>js/wufoo2.js" type="text/javascript"></script>
<script language="javascript" src="<?=WEB_MODULE_DIR?>js/common.js" type="text/javascript"></script>
<script language="javascript" src="<?=WEB_MODULE_DIR?>js/mootools-release-1.11.js" type="text/javascript"></script>
<script language="javascript" src="<?=WEB_MODULE_DIR?>js/includes.js" type="text/javascript"></script>
<script language="javascript" src="<?=WEB_MODULE_DIR?>js/tabber.js" type="text/javascript"></script>
<script language="javascript" src="<?=WEB_MODULE_DIR?>js/order.js" type="text/javascript"></script>
<script language="javascript" src="<?=WEB_MODULE_DIR?>js/overlib_mini.js" type="text/javascript"></script>
<script language="javascript" src="<?=WEB_MODULE_DIR?>js/tabs/tabpane_mini.js" type="text/javascript"></script>
<!-- CSS CONFIG-->
<link rel="stylesheet" type="text/css" media="all" href="<?=WEB_MODULE_DIR?>css/jscalendar/calendar-blue.css" title="blue" />
<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/tabpane.css" type="text/css">
<!--<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/style2.css" type="text/css">
<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/example.css" type="text/css">
<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/admin_login.css" type="text/css">-->
<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/template.css" type="text/css">
<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/calendar2.css" type="text/css"/>
<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/form2.css" type="text/css">
<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>ThemeOffice/theme.css" type="text/css">
<link href="<?=WEB_MODULE_DIR?>images/favicon.gif" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<!-- END CSS CONFIG -->
<!--<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/structure2.css" type="text/css" />-->
<!--<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/form2.css" type="text/css" />-->
<!--<link rel="stylesheet" href="<?=WEB_MODULE_DIR?>css/theme2.css" type="text/css" />-->
<style>
span._check {
   font-size: 8px;
   color: #cc0000;
}
</style>

</head>
<body id="minwidth-body">
<?php
  require_once(APP_LIB_DIR . 'LoginModel.class.php');
    $lm = new LoginModel('header');
    $auth = $user->getAttribute('auth');
    $who = $lm->check_online_users();
?>
<div id="border-top" class="h_blue">
  <span class="title"><a href="index.php">STUDENT ATTENDANCE AND MESSAGING SYSTEM</a></span>
</div>
<div id="header-box">
  <div id="module-status">
    <span class="loggedin-users"><?=$who[0][0]?>&nbsp;Logged-in</span>
    <span class="logout"><a href="?module=<?=DEFAULT_MODULE?>&action=Logout">Log out</a></span>		
  </div>
  <div id="module-menu">
  <!-- SYSTEM MENU -->
    <ul id="menu" >
      <li class="node"><a href="#">Main</a>
        <ul>
          <li><a class="icon-16-cpanel" href="?module=<?=DEFAULT_MODULE?>&action=DefaultIndex">Control Panel</a></li>
          <li class="separator"><span></span></li>
          <li><a class="icon-16-logout" href="?module=<?=DEFAULT_MODULE?>&action=Logout">Logout</a></li>
        </ul>
      </li>
      <li class="node"><a href="#">Address Book</a>
        <ul>
          <li><a class="icon-16-user" href="?module=<?=DEFAULT_MODULE?>&action=AddressBook">Contact Management</a></li>
          <li class="separator"><span></span></li>
          <li><a class="icon-16-groups" href="?module=<?=DEFAULT_MODULE?>&action=GroupManagement">Groups Management</a></li>
        </ul>
      </li>
      <li class="node"><a href="#">Transaction Management</a>
        <ul>
          <li><a class="icon-16-messages-read" href="?module=<?=DEFAULT_MODULE?>&action=InboxManager">Inbox</a></li>
          <li><a class="icon-16-messages-add" href="?module=<?=DEFAULT_MODULE?>&action=OutboxManager">Outbox</a></li>
          <li class="separator"><span></span></li>
          <li><a class="icon-16-messages" href="?module=<?=DEFAULT_MODULE?>&action=Messaging">Messaging</a></li>
          <li><a class="icon-16-themes" href="?module=<?=DEFAULT_MODULE?>&action=MessageTrackingManager">Message Tracking</a></li>
          <li><a class="icon-16-article" href="?module=<?=DEFAULT_MODULE?>&action=TemplateEditor">Template Manager</a></li>
        </ul>
      </li>
      <li class="node"><a href="?module=<?=DEFAULT_MODULE?>&action=PollIndex">Poll Messaging</a>
        <ul>
          <li><a class="icon-16-massmail" href="?module=<?=DEFAULT_MODULE?>&action=Poll">Create Poll</a></li>
          <li class="separator"><span></span></li>
          <li><a class="icon-16-levels" href="?module=<?=DEFAULT_MODULE?>&action=PollResult">Poll Results</a></li>
        </ul>
      </li>
      <li class="node"><a href="?module=<?=DEFAULT_MODULE?>&action=Maintenance">Maintenance</a>
        <ul>
          <li><a class="icon-16-user" href="?module=<?=DEFAULT_MODULE?>&action=ManageUser">User Manager</a></li>
          <li class="node"><a class="icon-16-groups" href="?module=<?=DEFAULT_MODULE?>&action=ManagePrivillege">User Group</a>
            <ul id="menu-com-menus-items-usermenu" class="menu-component">
              <li><a class="icon-16-levels" href="?module=<?=DEFAULT_MODULE?>&action=ManagePrivillegeLevel">User Level</a></li>
            </ul>
          </li>
          <li><a class="icon-16-levels" href="?module=<?=DEFAULT_MODULE?>&action=ManageUserRight">User Access Level</a></li>
          <li class="separator"><span></span></li>
          <li class="node"><a class="icon-16-module" href="?module=<?=DEFAULT_MODULE?>&action=ManageModule">Module Manager</a>
            <ul id="menu-com-menus-items-usermenu" class="menu-component">
              <li><a class="icon-16-menumgr" href="?module=<?=DEFAULT_MODULE?>&action=ManangeModuleGroups">Module Group Manager</a></li>
            </ul>
          </li>
          <li class="node"><a class="icon-16-help-docs" href="?module=<?=DEFAULT_MODULE?>&action=DTRConfiguration">DTR Configuration</a>
            <ul id="menu-com-menus-items-usermenu" class="menu-component">
              <li><a class="icon-16-help-dev" href="?module=<?=DEFAULT_MODULE?>&action=PresetMessages">Preset Massages</a></li>
              <li><a class="icon-16-help-jed" href="?module=<?=DEFAULT_MODULE?>&action=DTRSendConfig">Sending Configuration</a></li>
              <li><a class="icon-16-help-community" href="?module=<?=DEFAULT_MODULE?>&action=TimeSettings">Time Setting</a></li>
            </ul>
          </li>
        </ul>
      </li>
    </ul>
  </div>
  <div class="clr"></div>
</div>
<p id="mymsg"></p>
